package com.woniu.dao;

import com.woniu.entity.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author:陈涵
 * @Do:用户管理的dao层
 * @date: 2022/8/22 10:51
 */
public interface UserDao {

    User findOne(int id);

    List<User> findAll();

    int addOne(User user);

    int updateOne(User user);


    @Delete("delete from users where id=#{id}")
    int deleteOne(int id);
}
